package org.myspringframework.test;

import org.myspringframework.context.annotation.Autowired;
import org.myspringframework.context.annotation.Controller;

@Controller
public class UserController {
    @Autowired
    private IUserService userService;
    public UserController(){
        System.out.println("userController构造方法");
    }
    public void querry(){
        System.out.println("userController执行querry()");
        userService.querry();
    }

    public IUserService getUserService(){
        return userService;
    }
}
